#pragma once
#include <vector>
using namespace std;

class CServerSocketList
{
private:
	vector<SOCKET> _listSocket;
	vector<char*> _listUser;
public:
	void Push(SOCKET);
	void Pop(int i);
	int FindBySocket(SOCKET);
	int FindByUserName(char*);
	int Size();
	SOCKET GetSocket(int);	
	bool SetUsername(int,char*);
	bool GetUserList(char*);
	CServerSocketList(void);
	~CServerSocketList(void);
};
